#!/usr/bin/env python
# -*- coding:utf8 -*-
# uncompyle6 version 2.15.1
# Python bytecode 2.7 (62211)
# Decompiled from: Python 2.7.10 (default, Jul  1 2017, 13:36:56) 
# [GCC 4.4.6 20110731 (Red Hat 4.4.6-4)]
# Embedded file name: /data/bkce/open_paas/paas/templates_module/home/index.html.py
# Compiled at: 2018-01-02 11:21:10
from mako import runtime, filters, cache
UNDEFINED = runtime.UNDEFINED
STOP_RENDERING = runtime.STOP_RENDERING
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 10
_modified_time = 1514863270.597643
_enable_loop = True
_template_filename = '/data/bkce/open_paas/paas/templates/home/index.html'
_template_uri = 'home/index.html'
_source_encoding = 'utf-8'
_exports = []

def render_body(context, **pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        CSS_SUFFIX = context.get('CSS_SUFFIX', UNDEFINED)
        first_num = context.get('first_num', UNDEFINED)
        links = context.get('links', UNDEFINED)
        app_len = context.get('app_len', UNDEFINED)
        STATIC_VERSION = context.get('STATIC_VERSION', UNDEFINED)
        request = context.get('request', UNDEFINED)
        user_app_list = context.get('user_app_list', UNDEFINED)
        STATIC_URL = context.get('STATIC_URL', UNDEFINED)
        SITE_URL = context.get('SITE_URL', UNDEFINED)
        JS_SUFFIX = context.get('JS_SUFFIX', UNDEFINED)
        enumerate = context.get('enumerate', UNDEFINED)
        NOW = context.get('NOW', UNDEFINED)
        __M_writer = context.writer()
        __M_writer(u'<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
	  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	  <title>工作台|蓝鲸智云社区版</title>
	  <meta name="keywords" content="开发者中心,游戏运维,运维,服务器管理,模块配置,监控,腾讯游戏,蓝鲸,智云,devops,运维开发,蓝鲸社区版,社区版,作业平台,集成平台,配置平台,管控平台" />
	  <meta name="description" content="蓝鲸智云软件社区版是由蓝鲸智云团队提供的一套基于PaaS的技术解决方案，旨在改变中国运维行业，帮助企业快速达到基础运维支撑能力，并提升技术人员的DevOps能力。该版本提供了配置平台，作业平台，集成平台等强大功能，用户在使用时，请查阅并遵守《蓝鲸智云软件用户服务协议》。" />
	  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />

	  <link href="')
        __M_writer(unicode(STATIC_URL))
        __M_writer(u'favicon.ico" rel="Shortcut Icon">
    <!-- 以下两个插件用于在IE8以及以下版本浏览器支持HTML5元素和媒体查询，如果不需要用可以移除 -->
    <!--[if lt IE 9]>
    <script src="')
        __M_writer(unicode(STATIC_URL))
        __M_writer(u'js/html5shiv.min.js"></script>
    <script src="')
        __M_writer(unicode(STATIC_URL))
        __M_writer(u'js/respond.min.js"></script>
    <![endif]-->
    <link href="')
        __M_writer(unicode(STATIC_URL))
        __M_writer(u'assets/jquery-ui-1.11.0.custom/jquery-ui.css" rel="stylesheet">
    <link rel="stylesheet" href="')
        __M_writer(unicode(STATIC_URL))
        __M_writer(u'home/css/index.')
        __M_writer(unicode(CSS_SUFFIX))
        __M_writer(u'?v=')
        __M_writer(unicode(STATIC_VERSION))
        __M_writer(u'"/>
</head>
<body>
	<nav class="navbar">
		<a href="')
        __M_writer(unicode(SITE_URL))
        __M_writer(u'" class="logo">
			<img src="')
        __M_writer(unicode(STATIC_URL))
        __M_writer(u'home/images/logo.png"/ style="border: 0;">
		</a>
		<ul class="nav-list">
			<li class="active">
				<a href="')
        __M_writer(unicode(SITE_URL))
        __M_writer(u'">
					<p>应用面板</p>
					<span class="line"></span>
				</a>
			</li>
')
        if request.user.has_developer_perm:
            __M_writer(u'			<li>
				<a href="')
            __M_writer(unicode(SITE_URL))
            __M_writer(u'app/list/" target="_blank">
					<p>开发者中心</p>
					<span class="line"></span>
				</a>
			</li>
')
        __M_writer(u'		</ul>
		<div class="userInfo">
			<span class="userName">')
        __M_writer(unicode(request.user.username))
        __M_writer(u'</span>
			<div class="userImg">
				<img class="avatar" src="')
        __M_writer(unicode(STATIC_URL))
        __M_writer(u'home/images/avatar.png"/>
')
        if request.user.is_superuser:
            __M_writer(u'					<i class="crown"></i>
')
        __M_writer(u'			</div>
			<span class="caret"></span>
			<div class="dropdown">
				<span class="caret-up"></span>
				<ul class="dropdown-menu">
')
        if request.user.has_developer_perm:
            __M_writer(u'					<li>
						<a href="')
            __M_writer(unicode(SITE_URL))
            __M_writer(u'accounts/profile/" target="_blank">
							<i class="icon icon-user"></i><span>个人信息</span>
						</a>
					</li>
')
        else:
            __M_writer(u'					<li>
						<a href="/login/accounts/" target="_blank">
							<i class="icon icon-user"></i><span>个人信息</span>
						</a>
					</li>
')
        if request.user.is_superuser:
            __M_writer(u'						<li>
							<a href="/login/accounts/" target="_blank">
								<i class="icon icon-um"></i><span>用户管理</span>
							</a>
						</li>
')
        __M_writer(u'					<li>
						<a href="')
        __M_writer(unicode(SITE_URL))
        __M_writer(u'accounts/logout/">
							<i class="icon icon-logout"></i><span>注销</span>
						</a>
					</li>
				</ul>
			</div>
		</div>
	</nav>
	<div class="container cl">
		<div class="main-left">
			<div class="left-title cl">
				<p>应用面板</p>
				<div class="conf">
					<div class="edit active">
						<i class="gear"></i>
						<span>排序</span>
					</div>
					<div class="comp">完成</div>
				</div>
			</div>
			<ul class="app-list cl" id="app-list">
')
        for index, user_app in enumerate(user_app_list):
            __M_writer(u'			    <li class="app-list-item" app_code="')
            __M_writer(unicode(user_app.get('code')))
            __M_writer(u'" style="display:')
            __M_writer(unicode('' if index < first_num else 'none'))
            __M_writer(u'">
			        <a href="')
            __M_writer(unicode(user_app.get('link')))
            __M_writer(u'" target="_blank">
			            <img class="item" src="')
            __M_writer(unicode(user_app.get('logo') if index < first_num else ''))
            __M_writer(u'" img_url="')
            __M_writer(unicode(user_app.get('logo')))
            __M_writer(u'"  onerror="javascript:this.src='')
            __M_writer(unicode(STATIC_URL))
            __M_writer(u'home/images/img-zw.png';"/>
			            <p class="item-detail">')
            __M_writer(unicode(user_app.get('name', '--')))
            __M_writer(u'</p>
')
            if user_app.get('introduction', ''):
                __M_writer(u'			            <span class="mask">
			                <span class="mask-text">')
                __M_writer(unicode(user_app.get('introduction')))
                __M_writer(u'</span>
			            </span>
')
            __M_writer(u'			        </a>
			    </li>
')

        __M_writer(u'			</ul>
')
        if app_len > first_num:
            __M_writer(u'				<div class="loadMore">
					<p class="load-text">加载更多</p>
					<img class="loading" src="')
            __M_writer(unicode(STATIC_URL))
            __M_writer(u'home/images/loading.png"/>
				</div>
')
        __M_writer(u'		</div>
		<div class="main-right">
			<p class="right-title">常用链接</p>
			<ul class="list">
				<li class="list-item">
					<a target="_blank" href="http://bk.tencent.com/s-mart/">蓝鲸S-mart</a>
				</li>
				<li class="list-item">
					<a target="_blank" href="https://ke.qq.com/course/187459#tuin=89078b15">视频教程</a>
				</li>
				<li class="list-item">
					<a target="_blank" href="http://bbs.bk.tencent.com/forum.php?gid=61">社区论坛</a>
				</li>
				<li class="list-item">
					<a target="_blank" href="http://magicbox.bk.tencent.com/">MagicBox</a>
				</li>
')
        if request.user.is_superuser:
            __M_writer(u'					<li class="list-item">
						<a target="_blank" href="/login/accounts/">用户管理</a>
					</li>
')
        if request.user.has_developer_perm:
            __M_writer(u'				<li class="list-item">
					<a target="_blank" href="')
            __M_writer(unicode(SITE_URL))
            __M_writer(u'accounts/profile/">个人信息</a>
				</li>
')
        else:
            __M_writer(u'				<li class="list-item">
					<a target="_blank" href="/login/accounts/">个人信息</a>
				</li>
')
        __M_writer(u'				<li class="list-item">
					<a target="_blank" href="http://bk.tencent.com/info/#laws">服务协议</a>
				</li>
')
        for _l in links:
            __M_writer(u'					<li class="list-item">
						<a target="_blank" href="')
            __M_writer(unicode(_l.link))
            __M_writer(u'">')
            __M_writer(unicode(_l.name))
            __M_writer(u'</a>
					</li>
')

        __M_writer(u'			</ul>
		</div>
	</div>
	<footer class="footer">
        <p class="logo-qt">
            <img class="img-logo" src="')
        __M_writer(unicode(STATIC_URL))
        __M_writer(u'home/images/qtlogo.png"><span>青藤云安全提供安全检测</span>
        </p>
		<p>
		    <a id="contact_us" class="link">QQ咨询(800802001)</a>
		    | <a href="http://bbs.bk.tencent.com/forum.php" target="_blank" hotrep="hp.footer.feedback" class="link">蓝鲸论坛</a>
		    | <a href="http://bk.tencent.com/" target="_blank" hotrep="hp.footer.feedback" class="link">蓝鲸官网</a>
		    | <a href="')
        __M_writer(unicode(SITE_URL))
        __M_writer(u'" target="_blank" hotrep="hp.footer.feedback" class="link">蓝鲸智云工作台</a>
		    |<a class="follow-us" href="###">关注我们<span class="qr-box"><span class="qr"><img src="')
        __M_writer(unicode(STATIC_URL))
        __M_writer(u'home/images/qr.png"></span><span class="qr-caret"></span></span></a>
		</p>
		<p>Copyright © 2012-')
        __M_writer(unicode(NOW.year))
        __M_writer(u' Tencent BlueKing. All Rights Reserved.</p>
		<p>蓝鲸智云 版权所有</p>
	</footer>
    <script src="')
        __M_writer(unicode(STATIC_URL))
        __M_writer(u'home/js/jquery-1.10.2.min.js"></script>
    <script src="')
        __M_writer(unicode(STATIC_URL))
        __M_writer(u'assets/jquery-ui-1.11.0.custom/jquery-ui.js"></script>
    <script src="')
        __M_writer(unicode(STATIC_URL))
        __M_writer(u'home/js/csrftoken_v3.')
        __M_writer(unicode(JS_SUFFIX))
        __M_writer(u'"></script>
	<script src="')
        __M_writer(unicode(STATIC_URL))
        __M_writer(u'home/js/index.')
        __M_writer(unicode(JS_SUFFIX))
        __M_writer(u'?v=')
        __M_writer(unicode(STATIC_VERSION))
        __M_writer(u'"></script>
</body>
</html>
')
        return ''
    finally:
        context.caller_stack._pop_frame()
